<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
$ptypeId=65;
$mid=10;
$page_load_js="../../../skin/default/editor/xheditor/xheditor-zh-cn.min.js?v=1.1.5";
?>
<?php
$url="<a href=../../../>首页</a>&nbsp;>&nbsp;<a href=../cp/>控制面板</a>";
require(ECMS_PATH.'e/data/template/cp_1.php');
?>

<script src="../data/html/setday.js"></script>
<script src="../../../skin/default/editor/xheditor/xheditor-zh-cn.min.js?v=1.1.5"></script>
<link href="../../../skin/default/editor/xheditor/skin/commons.css" rel="stylesheet" type="text/css" />

<div class="dmain_conent">
<div class="pageindex">
	<a href='<?=$public_r['newsurl']?>e/active/list/?uid=<?=$user_id?>' class="tips active"><?php if($is_my){ ?>我<?php }else{ ?>TA<?php }?>发起的活动</a>
	<a href='<?=$public_r['newsurl']?>e/active/join/?uid=<?=$user_id?>' class="tips active"><?php if($is_my){ ?>我<?php }else{ ?>TA<?php }?>参加的活动</a>
	<a href='<?=$public_r['newsurl']?>e/active/focus/?uid=<?=$user_id?>' class="tips active"><?php if($is_my){ ?>我<?php }else{ ?>TA<?php }?>关注的活动</a>
	</div>
<div class='dmini-content'>
<style>
.list-p dl{clear:both;height:70px;border-bottom:1px dashed #eee;padding:5px;}
.list-p dl dt{float:left;}
.list-p dl dd{margin-left:95px;}
.list-p dl dd div{height:22px;}
</style>
<div class="list-p">
	<?php 
	if($list){
	foreach($list as $k=>$v){
		//$uIf=getUserInfo($v['userid']);	
		$url=sys_ReturnBqTitleLink($v);
		//var_dump($url);
	?>
	<dl>
		<dt>
		<a href="<?=$url?>"><img src="<?php echo getImgSizeUrl($v['active_cover'],119,105);?>" height='69'/></a>
		</dt>
		<dd><div><a href="<?=$url?>"><?=$v['title']?></a></div><div><?=$v['active_type']?> &nbsp; &nbsp; &nbsp;<?=$v['start_time']?>&nbsp;&nbsp;到&nbsp;&nbsp;<?=$v['end_time']?></div></dd>
	</dl>
	<?php }
	}else{
	?>
	<div class='no-data'><?php if($is_my){ ?>您<?php }else{ ?>TA<?php }?>没有创建过活动！</div>
	<?php }?>
</div>
</div>
</div>
<?php
require(ECMS_PATH.'e/data/template/cp_2.php');
?>